<?php

/**
 * 竞拍辅助
 *
 * Created by PhpStorm.
 * User: evan
 * Date: 16/9/14
 * Time: 下午11:30
 */
class Helper extends MY_Api_Controller
{
    public function like()
    {
        $uid = $this->uid;
        $aid = (int)$this->input->get_post('aid');


        $this->load->service('auction/service_auction_helper');
        $data = $this->service_auction_helper->like($uid, $aid);


        $this->json_output($data['data'], $data['status']);
    }


    public function follow_tip()
    {
        $uid = $this->uid;
        $aid = (int)$this->input->get_post('aid');


        $this->load->service('auction/service_auction_helper');
        $data = $this->service_auction_helper->follow_tip($uid, $aid);


        $this->json_output($data['data'], $data['status']);
    }
}